#!/usr/bin/sh

if [ $# -ne 1 ]; then
	echo "Usage: sh launch.sh <erlang node name>"
	exit 1
fi

NODE="$1"
SCRIPT="prj2server.erl"
NODES=50
FILES="\"files\""
REP=3
MACHINES="\"inst1@Adams-MacBook-Air.local,inst2@Adams-MacBook-Air.local\""

echo "c(prj2). prj2:init($NODES, $FILES, $REP, $MACHINES)." | erl -name ${NODE}
